<script setup>
import { onLaunch } from '@dcloudio/uni-app';
import { useAppInfoStore } from '@/store/appInfo.js'

const appInfo = useAppInfoStore();
const saveDeviceInfo = (e) => {
  const navBarHeight = 45;
  appInfo.setAppInfo(e.statusBarHeight,navBarHeight,e.screenWeight,e.screenHeight,e.deviceId,e.deviceBrand,e.appVersion)
}

onLaunch(() => {
  //获取系统信息
  uni.getSystemInfo({
    success: (e) => {
      saveDeviceInfo(e);
    }
  })
});
</script>

<style>
/*每个页面公共css */
</style>
